Skip to content

[sql_server] Update the mz_sql_server_util::Client to support tunneling#32085

Merged
ParkMyCar merged 1 commit intoMaterializeInc:mainfrom
ParkMyCar:sql_server/client-with-tunneling
Apr 7, 2025
Merged

[sql_server] Update the mz_sql_server_util::Client to support tunneling#32085
ParkMyCar merged 1 commit intoMaterializeInc:mainfrom
ParkMyCar:sql_server/client-with-tunneling

Conversation

@ParkMyCar
Copy link
Contributor

@ParkMyCar ParkMyCar commented Apr 3, 2025

This PR updates the mz_sql_server_util::Client to have initial support for tunneling by introducing our own mz_sql_server_util::Config type that wraps a tiberius::Config. Currently the only tunneling supported is SSH, AWS PrivateLink is left as a TODO.

Motivation

Nothing functionally changes yet, nor is the SSH tunneling testing, but it aligns our SQL Server Client with the Clients we use for Postgres and MySQL.

Progress towards: https://github.com/MaterializeInc/database-issues/issues/8762

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered. (trigger-ci for additional test/nightly runs)
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • If this PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way), then it is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration or tests, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).
  • If this PR includes major user-facing behavior changes, I have pinged the relevant PM to schedule a changelog post.

@ParkMyCar ParkMyCar requested a review from a team as a code owner April 3, 2025 18:07
* introduces a new Config type that wraps tiberius::Config
* adds a 'resources' field to mz_sql_server_util::Client that can be used to keep tunnels open
* updates the 'cdc' example to use the new Client config
@ParkMyCar ParkMyCar force-pushed the sql_server/client-with-tunneling branch from 28bb700 to b541f05 Compare April 3, 2025 19:05
@ParkMyCar ParkMyCar changed the title [sql_server] Update the mz_sql_server_util::Client to support tunnelling [sql_server] Update the mz_sql_server_util::Client to support tunneling Apr 3, 2025
@ParkMyCar ParkMyCar merged commit 3d010ca into MaterializeInc:main Apr 7, 2025
82 checks passed
@ParkMyCar ParkMyCar deleted the sql_server/client-with-tunneling branch April 12, 2025 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants